home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / PPCToolbox.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  19.4 KB  |  702 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        PPCToolbox.a
  3. ;
  4. ;    Contains:    Program-Program Communications Toolbox Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__PPCTOOLBOX__') = 'UNDEFINED' THEN
  21. __PPCTOOLBOX__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__APPLETALK__') = 'UNDEFINED' THEN
  25.     include 'AppleTalk.a'
  26.     ENDIF
  27. ;        include 'Types.a'                                            ;
  28. ;            include 'ConditionalMacros.a'                            ;
  29. ;        include 'OSUtils.a'                                        ;
  30. ;            include 'MixedMode.a'                                    ;
  31. ;            include 'Memory.a'                                        ;
  32.  
  33.     IF &TYPE('__MEMORY__') = 'UNDEFINED' THEN
  34.     include 'Memory.a'
  35.     ENDIF
  36.  
  37.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  38.     include 'Types.a'
  39.     ENDIF
  40. ; typedef unsigned char     PPCServiceType
  41.  
  42. ppcServiceRealTime                EQU        1
  43.  
  44. ; typedef short             PPCLocationKind
  45.  
  46. ppcNoLocation                    EQU        0                    ; There is no PPCLocName 
  47. ppcNBPLocation                    EQU        1                    ; Use AppleTalk NBP      
  48. ppcNBPTypeLocation                EQU        2                    ; Used for specifying a location name type during PPCOpen only 
  49.  
  50. ; typedef short             PPCPortKinds
  51.  
  52. ppcByCreatorAndType                EQU        1                    ; Port type is specified as colloquial Mac creator and type 
  53. ppcByString                        EQU        2                    ; Port type is in pascal string format 
  54.  
  55. ; Values returned for request field in PPCInform call 
  56. ; typedef unsigned char     PPCSessionOrigin
  57.  
  58. ; Values returned for requestType field in PPCInform call 
  59. ppcLocalOrigin                    EQU        1                    ; session originated from this machine 
  60. ppcRemoteOrigin                    EQU        2                    ; session originated from remote machine 
  61.  
  62. ; typedef short             PPCPortRefNum
  63. ; typedef long                 PPCSessRefNum
  64. PPCPortRec                 RECORD    0
  65. nameScript                 ds.w   1        ; offset: $0 (0)        ; script of name 
  66. name                     ds.b   33        ; offset: $2 (2)        ; name of port as seen in browser 
  67.                          ORG 36
  68. portKindSelector         ds.w   1        ; offset: $24 (36)        ; which variant 
  69. portTypeStr                 ds.b   33        ; offset: $26 (38)        ; pascal type string 
  70.                          ORG 38
  71. portCreator                 ds.l   1        ; offset: $26 (38)
  72. portType                 ds.l   1        ; offset: $2A (42)
  73.                          ORG 72
  74. sizeof                     EQU *            ; size:   $48 (72)
  75.                         ENDR
  76.  
  77. ; typedef struct PPCPortRec  PPCPortRec, *PPCPortPtr
  78. LocationNameRec         RECORD    0
  79. locationKindSelector     ds.w   1        ; offset: $0 (0)        ; which variant 
  80. nbpEntity                 ds     EntityName ; offset: $2 (2)        ; NBP name entity 
  81.                          ORG 2
  82. nbpType                     ds.b   33        ; offset: $2 (2)        ; just the NBP type string, for PPCOpen 
  83.                          ORG 104
  84. sizeof                     EQU *            ; size:   $68 (104)
  85.                         ENDR
  86.  
  87. ; typedef struct LocationNameRec  LocationNameRec, *LocationNamePtr
  88. PortInfoRec             RECORD    0
  89. filler1                     ds.b   1        ; offset: $0 (0)
  90. authRequired             ds.b   1        ; offset: $1 (1)
  91. name                     ds.l   18        ; offset: $2 (2)
  92. sizeof                     EQU *            ; size:   $4A (74)
  93.                         ENDR
  94.  
  95. ; typedef struct PortInfoRec  PortInfoRec, *PortInfoPtr
  96. ; typedef PortInfoRec         *PortInfoArrayPtr
  97. ; typedef union PPCParamBlockRec  PPCParamBlockRec, *PPCParamBlockPtr
  98. PPCOpenPBRec             RECORD    0
  99. qLink                     ds.l   1        ; offset: $0 (0)
  100. csCode                     ds.w   1        ; offset: $4 (4)
  101. intUse                     ds.w   1        ; offset: $6 (6)
  102. intUsePtr                 ds.l   1        ; offset: $8 (8)
  103. ioCompletion             ds.l   1        ; offset: $C (12)
  104. ioResult                 ds.w   1        ; offset: $10 (16)
  105. Reserved                 ds.l   5        ; offset: $12 (18)
  106. portRefNum                 ds.w   1        ; offset: $26 (38)        ; 38 <--   Port Reference 
  107. filler1                     ds.l   1        ; offset: $28 (40)
  108. serviceType                 ds.b   1        ; offset: $2C (44)        ; 44 -->    Bit field describing the requested port service 
  109. resFlag                     ds.b   1        ; offset: $2D (45)        ; Must be set to 0 
  110. portName                 ds.l   1        ; offset: $2E (46)        ; 46 -->   PortName for PPC 
  111. locationName             ds.l   1        ; offset: $32 (50)        ; 50 -->   If NBP Registration is required 
  112. networkVisible             ds.b   1        ; offset: $36 (54)        ; 54 -->   make this network visible on network 
  113. nbpRegistered             ds.b   1        ; offset: $37 (55)        ; 55 <--   The given location name was registered on the network 
  114. sizeof                     EQU *            ; size:   $38 (56)
  115.                         ENDR
  116.  
  117. ; typedef struct PPCOpenPBRec  PPCOpenPBRec, *PPCOpenPBPtr
  118. PPCInformPBRec             RECORD    0
  119. qLink                     ds.l   1        ; offset: $0 (0)
  120. csCode                     ds.w   1        ; offset: $4 (4)
  121. intUse                     ds.w   1        ; offset: $6 (6)
  122. intUsePtr                 ds.l   1        ; offset: $8 (8)
  123. ioCompletion             ds.l   1        ; offset: $C (12)
  124. ioResult                 ds.w   1        ; offset: $10 (16)
  125. Reserved                 ds.l   5        ; offset: $12 (18)
  126. portRefNum                 ds.w   1        ; offset: $26 (38)        ; 38 -->   Port Identifier 
  127. sessRefNum                 ds.l   1        ; offset: $28 (40)        ; 40 <--   Session Reference 
  128. serviceType                 ds.b   1        ; offset: $2C (44)        ; 44 <--   Status Flags for type of session, local, remote 
  129. autoAccept                 ds.b   1        ; offset: $2D (45)        ; 45 -->   if true session will be accepted automatically 
  130. portName                 ds.l   1        ; offset: $2E (46)        ; 46 -->   Buffer for Source PPCPortRec 
  131. locationName             ds.l   1        ; offset: $32 (50)        ; 50 -->   Buffer for Source LocationNameRec 
  132. userName                 ds.l   1        ; offset: $36 (54)        ; 54 -->   Buffer for Soure user's name trying to link. 
  133. userData                 ds.l   1        ; offset: $3A (58)        ; 58 <--   value included in PPCStart's userData 
  134. requestType                 ds.b   1        ; offset: $3E (62)        ; 62 <--   Local or Network 
  135. filler                     ds.b   1        ; offset: $3F (63)
  136. sizeof                     EQU *            ; size:   $40 (64)
  137.                         ENDR
  138.  
  139. ; typedef struct PPCInformPBRec  PPCInformPBRec, *PPCInformPBPtr
  140. PPCStartPBRec             RECORD    0
  141. qLink                     ds.l   1        ; offset: $0 (0)
  142. csCode                     ds.w   1        ; offset: $4 (4)
  143. intUse                     ds.w   1        ; offset: $6 (6)
  144. intUsePtr                 ds.l   1        ; offset: $8 (8)
  145. ioCompletion             ds.l   1        ; offset: $C (12)
  146. ioResult                 ds.w   1        ; offset: $10 (16)
  147. Reserved                 ds.l   5        ; offset: $12 (18)
  148. portRefNum                 ds.w   1        ; offset: $26 (38)        ; 38 -->   Port Identifier 
  149. sessRefNum                 ds.l   1        ; offset: $28 (40)        ; 40 <--   Session Reference 
  150. serviceType                 ds.b   1        ; offset: $2C (44)        ; 44 <--   Actual service method (realTime) 
  151. resFlag                     ds.b   1        ; offset: $2D (45)        ; 45 -->   Must be set to 0  
  152. portName                 ds.l   1        ; offset: $2E (46)        ; 46 -->   Destination portName 
  153. locationName             ds.l   1        ; offset: $32 (50)        ; 50 -->   NBP or NAS style service location name 
  154. rejectInfo                 ds.l   1        ; offset: $36 (54)        ; 54 <--   reason for rejecting the session request 
  155. userData                 ds.l   1        ; offset: $3A (58)        ; 58 -->   Copied to destination PPCInform parameter block 
  156. userRefNum                 ds.l   1        ; offset: $3E (62)        ; 62 -->   userRefNum (obtained during login process)  
  157. sizeof                     EQU *            ; size:   $42 (66)
  158.                         ENDR
  159.  
  160. ; typedef struct PPCStartPBRec  PPCStartPBRec, *PPCStartPBPtr
  161. PPCAcceptPBRec             RECORD    0
  162. qLink                     ds.l   1        ; offset: $0 (0)
  163. csCode                     ds.w   1        ; offset: $4 (4)
  164. intUse                     ds.w   1        ; offset: $6 (6)
  165. intUsePtr                 ds.l   1        ; offset: $8 (8)
  166. ioCompletion             ds.l   1        ; offset: $C (12)
  167. ioResult                 ds.w   1        ; offset: $10 (16)
  168. Reserved                 ds.l   5        ; offset: $12 (18)
  169. filler1                     ds.w   1        ; offset: $26 (38)
  170. sessRefNum                 ds.l   1        ; offset: $28 (40)        ; 40 -->   Session Reference 
  171. sizeof                     EQU *            ; size:   $2C (44)
  172.                         ENDR
  173.  
  174. ; typedef struct PPCAcceptPBRec  PPCAcceptPBRec, *PPCAcceptPBPtr
  175. PPCRejectPBRec             RECORD    0
  176. qLink                     ds.l   1        ; offset: $0 (0)
  177. csCode                     ds.w   1        ; offset: $4 (4)
  178. intUse                     ds.w   1        ; offset: $6 (6)
  179. intUsePtr                 ds.l   1        ; offset: $8 (8)
  180. ioCompletion             ds.l   1        ; offset: $C (12)
  181. ioResult                 ds.w   1        ; offset: $10 (16)
  182. Reserved                 ds.l   5        ; offset: $12 (18)
  183. filler1                     ds.w   1        ; offset: $26 (38)
  184. sessRefNum                 ds.l   1        ; offset: $28 (40)        ; 40 -->   Session Reference 
  185. filler2                     ds.w   1        ; offset: $2C (44)
  186. filler3                     ds.l   1        ; offset: $2E (46)
  187. filler4                     ds.l   1        ; offset: $32 (50)
  188. rejectInfo                 ds.l   1        ; offset: $36 (54)        ; 54 -->   reason for rejecting the session request  
  189. sizeof                     EQU *            ; size:   $3A (58)
  190.                         ENDR
  191.  
  192. ; typedef struct PPCRejectPBRec  PPCRejectPBRec, *PPCRejectPBPtr
  193. PPCWritePBRec             RECORD    0
  194. qLink                     ds.l   1        ; offset: $0 (0)
  195. csCode                     ds.w   1        ; offset: $4 (4)
  196. intUse                     ds.w   1        ; offset: $6 (6)
  197. intUsePtr                 ds.l   1        ; offset: $8 (8)
  198. ioCompletion             ds.l   1        ; offset: $C (12)
  199. ioResult                 ds.w   1        ; offset: $10 (16)
  200. Reserved                 ds.l   5        ; offset: $12 (18)
  201. filler1                     ds.w   1        ; offset: $26 (38)
  202. sessRefNum                 ds.l   1        ; offset: $28 (40)        ; 40 -->   Session Reference 
  203. bufferLength             ds.l   1        ; offset: $2C (44)        ; 44 -->   Length of the message buffer 
  204. actualLength             ds.l   1        ; offset: $30 (48)        ; 48 <--   Actual Length Written 
  205. bufferPtr                 ds.l   1        ; offset: $34 (52)        ; 52 -->   Pointer to message buffer 
  206. more                     ds.b   1        ; offset: $38 (56)        ; 56 -->   if more data in this block will be written 
  207. filler2                     ds.b   1        ; offset: $39 (57)
  208. userData                 ds.l   1        ; offset: $3A (58)        ; 58 -->   Message block userData Uninterpreted by PPC 
  209. blockCreator             ds.l   1        ; offset: $3E (62)        ; 62 -->   Message block creator Uninterpreted by PPC 
  210. blockType                 ds.l   1        ; offset: $42 (66)        ; 66 -->   Message block type Uninterpreted by PPC 
  211. sizeof                     EQU *            ; size:   $46 (70)
  212.                         ENDR
  213.  
  214. ; typedef struct PPCWritePBRec  PPCWritePBRec, *PPCWritePBPtr
  215. PPCReadPBRec             RECORD    0
  216. qLink                     ds.l   1        ; offset: $0 (0)
  217. csCode                     ds.w   1        ; offset: $4 (4)
  218. intUse                     ds.w   1        ; offset: $6 (6)
  219. intUsePtr                 ds.l   1        ; offset: $8 (8)
  220. ioCompletion             ds.l   1        ; offset: $C (12)
  221. ioResult                 ds.w   1        ; offset: $10 (16)
  222. Reserved                 ds.l   5        ; offset: $12 (18)
  223. filler1                     ds.w   1        ; offset: $26 (38)
  224. sessRefNum                 ds.l   1        ; offset: $28 (40)        ; 40 -->   Session Reference 
  225. bufferLength             ds.l   1        ; offset: $2C (44)        ; 44 -->   Length of the message buffer 
  226. actualLength             ds.l   1        ; offset: $30 (48)        ; 48 <--   Actual length read 
  227. bufferPtr                 ds.l   1        ; offset: $34 (52)        ; 52 -->   Pointer to message buffer 
  228. more                     ds.b   1        ; offset: $38 (56)        ; 56 <--   if true more data in this block to be read 
  229. filler2                     ds.b   1        ; offset: $39 (57)
  230. userData                 ds.l   1        ; offset: $3A (58)        ; 58 <--   Message block userData Uninterpreted by PPC 
  231. blockCreator             ds.l   1        ; offset: $3E (62)        ; 62 <--   Message block creator Uninterpreted by PPC 
  232. blockType                 ds.l   1        ; offset: $42 (66)        ; 66 <--   Message block type Uninterpreted by PPC 
  233. sizeof                     EQU *            ; size:   $46 (70)
  234.                         ENDR
  235.  
  236. ; typedef struct PPCReadPBRec  PPCReadPBRec, *PPCReadPBPtr
  237. PPCEndPBRec             RECORD    0
  238. qLink                     ds.l   1        ; offset: $0 (0)
  239. csCode                     ds.w   1        ; offset: $4 (4)
  240. intUse                     ds.w   1        ; offset: $6 (6)
  241. intUsePtr                 ds.l   1        ; offset: $8 (8)
  242. ioCompletion             ds.l   1        ; offset: $C (12)
  243. ioResult                 ds.w   1        ; offset: $10 (16)
  244. Reserved                 ds.l   5        ; offset: $12 (18)
  245. filler1                     ds.w   1        ; offset: $26 (38)
  246. sessRefNum                 ds.l   1        ; offset: $28 (40)        ; 40 -->   Session Reference 
  247. sizeof                     EQU *            ; size:   $2C (44)
  248.                         ENDR
  249.  
  250. ; typedef struct PPCEndPBRec  PPCEndPBRec, *PPCEndPBPtr
  251. PPCClosePBRec             RECORD    0
  252. qLink                     ds.l   1        ; offset: $0 (0)
  253. csCode                     ds.w   1        ; offset: $4 (4)
  254. intUse                     ds.w   1        ; offset: $6 (6)
  255. intUsePtr                 ds.l   1        ; offset: $8 (8)
  256. ioCompletion             ds.l   1        ; offset: $C (12)
  257. ioResult                 ds.w   1        ; offset: $10 (16)
  258. Reserved                 ds.l   5        ; offset: $12 (18)
  259. portRefNum                 ds.w   1        ; offset: $26 (38)        ; 38 -->   Port Identifier 
  260. sizeof                     EQU *            ; size:   $28 (40)
  261.                         ENDR
  262.  
  263. ; typedef struct PPCClosePBRec  PPCClosePBRec, *PPCClosePBPtr
  264. IPCListPortsPBRec         RECORD    0
  265. qLink                     ds.l   1        ; offset: $0 (0)
  266. csCode                     ds.w   1        ; offset: $4 (4)
  267. intUse                     ds.w   1        ; offset: $6 (6)
  268. intUsePtr                 ds.l   1        ; offset: $8 (8)
  269. ioCompletion             ds.l   1        ; offset: $C (12)
  270. ioResult                 ds.w   1        ; offset: $10 (16)
  271. Reserved                 ds.l   5        ; offset: $12 (18)
  272. filler1                     ds.w   1        ; offset: $26 (38)
  273. startIndex                 ds.w   1        ; offset: $28 (40)        ; 40 -->   Start Index 
  274. requestCount             ds.w   1        ; offset: $2A (42)        ; 42 -->   Number of entries to be returned 
  275. actualCount                 ds.w   1        ; offset: $2C (44)        ; 44 <--   Actual Number of entries to be returned 
  276. portName                 ds.l   1        ; offset: $2E (46)        ; 46 -->   PortName Match 
  277. locationName             ds.l   1        ; offset: $32 (50)        ; 50 -->   NBP or NAS type name to locate the Port Location 
  278. bufferPtr                 ds.l   1        ; offset: $36 (54)        ; 54 -->   Pointer to a buffer requestCount*sizeof(PortInfo) bytes big 
  279. sizeof                     EQU *            ; size:   $3A (58)
  280.                         ENDR
  281.  
  282. ; typedef struct IPCListPortsPBRec  IPCListPortsPBRec, *IPCListPortsPBPtr
  283. PPCParamBlockRec         RECORD    0
  284. openParam                 ds     PPCOpenPBRec ; offset: $0 (0)
  285.                          ORG 0
  286. informParam                 ds     PPCInformPBRec ; offset: $0 (0)
  287.                          ORG 0
  288. startParam                 ds     PPCStartPBRec ; offset: $0 (0)
  289.                          ORG 0
  290. acceptParam                 ds     PPCAcceptPBRec ; offset: $0 (0)
  291.                          ORG 0
  292. rejectParam                 ds     PPCRejectPBRec ; offset: $0 (0)
  293.                          ORG 0
  294. writeParam                 ds     PPCWritePBRec ; offset: $0 (0)
  295.                          ORG 0
  296. readParam                 ds     PPCReadPBRec ; offset: $0 (0)
  297.                          ORG 0
  298. endParam                 ds     PPCEndPBRec ; offset: $0 (0)
  299.                          ORG 0
  300. closeParam                 ds     PPCClosePBRec ; offset: $0 (0)
  301.                          ORG 0
  302. listPortsParam             ds     IPCListPortsPBRec ; offset: $0 (0)
  303.                          ORG 70
  304. sizeof                     EQU *            ; size:   $46 (70)
  305.                         ENDR
  306.  
  307. ;
  308. ; pascal OSErr PPCInit(void)
  309. ;
  310.     IF ¬ GENERATINGCFM THEN
  311.         ; returns: 
  312.         ;     OSErr             <= D0
  313.         Macro
  314.         _PPCInit
  315.             moveq    #0,d0
  316.             dc.w     $A0DD
  317.         EndM
  318.     ELSE
  319.         IMPORT_CFM_FUNCTION    PPCInit
  320.     ENDIF
  321.  
  322. ;
  323. ; pascal OSErr PPCOpenSync(PPCOpenPBPtr pb)
  324. ;
  325.     IF ¬ GENERATINGCFM THEN
  326.         ; parameters: 
  327.         ;     pb                => A0
  328.         ; returns: 
  329.         ;     OSErr             <= D0
  330.         Macro
  331.         _PPCOpenSync
  332.             moveq    #1,d0
  333.             dc.w     $A0DD
  334.         EndM
  335.     ELSE
  336.         IMPORT_CFM_FUNCTION    PPCOpenSync
  337.     ENDIF
  338.  
  339. ;
  340. ; pascal OSErr PPCOpenAsync(PPCOpenPBPtr pb)
  341. ;
  342.     IF ¬ GENERATINGCFM THEN
  343.         ; parameters: 
  344.         ;     pb                => A0
  345.         ; returns: 
  346.         ;     OSErr             <= D0
  347.         Macro
  348.         _PPCOpenAsync
  349.             moveq    #1,d0
  350.             dc.w     $A4DD
  351.         EndM
  352.     ELSE
  353.         IMPORT_CFM_FUNCTION    PPCOpenAsync
  354.     ENDIF
  355.  
  356. ;
  357. ; pascal OSErr PPCInformSync(PPCInformPBPtr pb)
  358. ;
  359.     IF ¬ GENERATINGCFM THEN
  360.         ; parameters: 
  361.         ;     pb                => A0
  362.         ; returns: 
  363.         ;     OSErr             <= D0
  364.         Macro
  365.         _PPCInformSync
  366.             moveq    #3,d0
  367.             dc.w     $A0DD
  368.         EndM
  369.     ELSE
  370.         IMPORT_CFM_FUNCTION    PPCInformSync
  371.     ENDIF
  372.  
  373. ;
  374. ; pascal OSErr PPCInformAsync(PPCInformPBPtr pb)
  375. ;
  376.     IF ¬ GENERATINGCFM THEN
  377.         ; parameters: 
  378.         ;     pb                => A0
  379.         ; returns: 
  380.         ;     OSErr             <= D0
  381.         Macro
  382.         _PPCInformAsync
  383.             moveq    #3,d0
  384.             dc.w     $A4DD
  385.         EndM
  386.     ELSE
  387.         IMPORT_CFM_FUNCTION    PPCInformAsync
  388.     ENDIF
  389.  
  390. ;
  391. ; pascal OSErr PPCStartSync(PPCStartPBPtr pb)
  392. ;
  393.     IF ¬ GENERATINGCFM THEN
  394.         ; parameters: 
  395.         ;     pb                => A0
  396.         ; returns: 
  397.         ;     OSErr             <= D0
  398.         Macro
  399.         _PPCStartSync
  400.             moveq    #2,d0
  401.             dc.w     $A0DD
  402.         EndM
  403.     ELSE
  404.         IMPORT_CFM_FUNCTION    PPCStartSync
  405.     ENDIF
  406.  
  407. ;
  408. ; pascal OSErr PPCStartAsync(PPCStartPBPtr pb)
  409. ;
  410.     IF ¬ GENERATINGCFM THEN
  411.         ; parameters: 
  412.         ;     pb                => A0
  413.         ; returns: 
  414.         ;     OSErr             <= D0
  415.         Macro
  416.         _PPCStartAsync
  417.             moveq    #2,d0
  418.             dc.w     $A4DD
  419.         EndM
  420.     ELSE
  421.         IMPORT_CFM_FUNCTION    PPCStartAsync
  422.     ENDIF
  423.  
  424. ;
  425. ; pascal OSErr PPCAcceptSync(PPCAcceptPBPtr pb)
  426. ;
  427.     IF ¬ GENERATINGCFM THEN
  428.         ; parameters: 
  429.         ;     pb                => A0
  430.         ; returns: 
  431.         ;     OSErr             <= D0
  432.         Macro
  433.         _PPCAcceptSync
  434.             moveq    #4,d0
  435.             dc.w     $A0DD
  436.         EndM
  437.     ELSE
  438.         IMPORT_CFM_FUNCTION    PPCAcceptSync
  439.     ENDIF
  440.  
  441. ;
  442. ; pascal OSErr PPCAcceptAsync(PPCAcceptPBPtr pb)
  443. ;
  444.     IF ¬ GENERATINGCFM THEN
  445.         ; parameters: 
  446.         ;     pb                => A0
  447.         ; returns: 
  448.         ;     OSErr             <= D0
  449.         Macro
  450.         _PPCAcceptAsync
  451.             moveq    #4,d0
  452.             dc.w     $A4DD
  453.         EndM
  454.     ELSE
  455.         IMPORT_CFM_FUNCTION    PPCAcceptAsync
  456.     ENDIF
  457.  
  458. ;
  459. ; pascal OSErr PPCRejectSync(PPCRejectPBPtr pb)
  460. ;
  461.     IF ¬ GENERATINGCFM THEN
  462.         ; parameters: 
  463.         ;     pb                => A0
  464.         ; returns: 
  465.         ;     OSErr             <= D0
  466.         Macro
  467.         _PPCRejectSync
  468.             moveq    #5,d0
  469.             dc.w     $A0DD
  470.         EndM
  471.     ELSE
  472.         IMPORT_CFM_FUNCTION    PPCRejectSync
  473.     ENDIF
  474.  
  475. ;
  476. ; pascal OSErr PPCRejectAsync(PPCRejectPBPtr pb)
  477. ;
  478.     IF ¬ GENERATINGCFM THEN
  479.         ; parameters: 
  480.         ;     pb                => A0
  481.         ; returns: 
  482.         ;     OSErr             <= D0
  483.         Macro
  484.         _PPCRejectAsync
  485.             moveq    #5,d0
  486.             dc.w     $A4DD
  487.         EndM
  488.     ELSE
  489.         IMPORT_CFM_FUNCTION    PPCRejectAsync
  490.     ENDIF
  491.  
  492. ;
  493. ; pascal OSErr PPCWriteSync(PPCWritePBPtr pb)
  494. ;
  495.     IF ¬ GENERATINGCFM THEN
  496.         ; parameters: 
  497.         ;     pb                => A0
  498.         ; returns: 
  499.         ;     OSErr             <= D0
  500.         Macro
  501.         _PPCWriteSync
  502.             moveq    #6,d0
  503.             dc.w     $A0DD
  504.         EndM
  505.     ELSE
  506.         IMPORT_CFM_FUNCTION    PPCWriteSync
  507.     ENDIF
  508.  
  509. ;
  510. ; pascal OSErr PPCWriteAsync(PPCWritePBPtr pb)
  511. ;
  512.     IF ¬ GENERATINGCFM THEN
  513.         ; parameters: 
  514.         ;     pb                => A0
  515.         ; returns: 
  516.         ;     OSErr             <= D0
  517.         Macro
  518.         _PPCWriteAsync
  519.             moveq    #6,d0
  520.             dc.w     $A4DD
  521.         EndM
  522.     ELSE
  523.         IMPORT_CFM_FUNCTION    PPCWriteAsync
  524.     ENDIF
  525.  
  526. ;
  527. ; pascal OSErr PPCReadSync(PPCReadPBPtr pb)
  528. ;
  529.     IF ¬ GENERATINGCFM THEN
  530.         ; parameters: 
  531.         ;     pb                => A0
  532.         ; returns: 
  533.         ;     OSErr             <= D0
  534.         Macro
  535.         _PPCReadSync
  536.             moveq    #7,d0
  537.             dc.w     $A0DD
  538.         EndM
  539.     ELSE
  540.         IMPORT_CFM_FUNCTION    PPCReadSync
  541.     ENDIF
  542.  
  543. ;
  544. ; pascal OSErr PPCReadAsync(PPCReadPBPtr pb)
  545. ;
  546.     IF ¬ GENERATINGCFM THEN
  547.         ; parameters: 
  548.         ;     pb                => A0
  549.         ; returns: 
  550.         ;     OSErr             <= D0
  551.         Macro
  552.         _PPCReadAsync
  553.             moveq    #7,d0
  554.             dc.w     $A4DD
  555.         EndM
  556.     ELSE
  557.         IMPORT_CFM_FUNCTION    PPCReadAsync
  558.     ENDIF
  559.  
  560. ;
  561. ; pascal OSErr PPCEndSync(PPCEndPBPtr pb)
  562. ;
  563.     IF ¬ GENERATINGCFM THEN
  564.         ; parameters: 
  565.         ;     pb                => A0
  566.         ; returns: 
  567.         ;     OSErr             <= D0
  568.         Macro
  569.         _PPCEndSync
  570.             moveq    #8,d0
  571.             dc.w     $A0DD
  572.         EndM
  573.     ELSE
  574.         IMPORT_CFM_FUNCTION    PPCEndSync
  575.     ENDIF
  576.  
  577. ;
  578. ; pascal OSErr PPCEndAsync(PPCEndPBPtr pb)
  579. ;
  580.     IF ¬ GENERATINGCFM THEN
  581.         ; parameters: 
  582.         ;     pb                => A0
  583.         ; returns: 
  584.         ;     OSErr             <= D0
  585.         Macro
  586.         _PPCEndAsync
  587.             moveq    #8,d0
  588.             dc.w     $A4DD
  589.         EndM
  590.     ELSE
  591.         IMPORT_CFM_FUNCTION    PPCEndAsync
  592.     ENDIF
  593.  
  594. ;
  595. ; pascal OSErr PPCCloseSync(PPCClosePBPtr pb)
  596. ;
  597.     IF ¬ GENERATINGCFM THEN
  598.         ; parameters: 
  599.         ;     pb                => A0
  600.         ; returns: 
  601.         ;     OSErr             <= D0
  602.         Macro
  603.         _PPCCloseSync
  604.             moveq    #9,d0
  605.             dc.w     $A0DD
  606.         EndM
  607.     ELSE
  608.         IMPORT_CFM_FUNCTION    PPCCloseSync
  609.     ENDIF
  610.  
  611. ;
  612. ; pascal OSErr PPCCloseAsync(PPCClosePBPtr pb)
  613. ;
  614.     IF ¬ GENERATINGCFM THEN
  615.         ; parameters: 
  616.         ;     pb                => A0
  617.         ; returns: 
  618.         ;     OSErr             <= D0
  619.         Macro
  620.         _PPCCloseAsync
  621.             moveq    #9,d0
  622.             dc.w     $A4DD
  623.         EndM
  624.     ELSE
  625.         IMPORT_CFM_FUNCTION    PPCCloseAsync
  626.     ENDIF
  627.  
  628. ;
  629. ; pascal OSErr IPCListPortsSync(IPCListPortsPBPtr pb)
  630. ;
  631.     IF ¬ GENERATINGCFM THEN
  632.         ; parameters: 
  633.         ;     pb                => A0
  634.         ; returns: 
  635.         ;     OSErr             <= D0
  636.         Macro
  637.         _IPCListPortsSync
  638.             moveq    #10,d0
  639.             dc.w     $A0DD
  640.         EndM
  641.     ELSE
  642.         IMPORT_CFM_FUNCTION    IPCListPortsSync
  643.     ENDIF
  644.  
  645. ;
  646. ; pascal OSErr IPCListPortsAsync(IPCListPortsPBPtr pb)
  647. ;
  648.     IF ¬ GENERATINGCFM THEN
  649.         ; parameters: 
  650.         ;     pb                => A0
  651.         ; returns: 
  652.         ;     OSErr             <= D0
  653.         Macro
  654.         _IPCListPortsAsync
  655.             moveq    #10,d0
  656.             dc.w     $A4DD
  657.         EndM
  658.     ELSE
  659.         IMPORT_CFM_FUNCTION    IPCListPortsAsync
  660.     ENDIF
  661.  
  662. ;
  663. ; pascal OSErr DeleteUserIdentity(unsigned long userRef)
  664. ;
  665.     IF GENERATINGCFM THEN
  666.         IMPORT_CFM_FUNCTION    DeleteUserIdentity
  667.     ENDIF
  668.  
  669. ;
  670. ; pascal OSErr GetDefaultUser(unsigned long *userRef, Str32 userName)
  671. ;
  672.     IF GENERATINGCFM THEN
  673.         IMPORT_CFM_FUNCTION    GetDefaultUser
  674.     ENDIF
  675.  
  676. ;
  677. ; pascal OSErr StartSecureSession(PPCStartPBPtr pb, Str32 userName, Boolean useDefault, Boolean allowGuest, Boolean *guestSelected, ConstStr255Param prompt)
  678. ;
  679.     IF GENERATINGCFM THEN
  680.         IMPORT_CFM_FUNCTION    StartSecureSession
  681.     ENDIF
  682.  
  683. ;
  684. ; pascal OSErr PPCBrowser(ConstStr255Param prompt, ConstStr255Param applListLabel, Boolean defaultSpecified, LocationNameRec *theLocation, PortInfoRec *thePortInfo, PPCFilterUPP portFilter, ConstStr32Param theLocNBPType)
  685. ;
  686.     IF ¬ GENERATINGCFM THEN
  687.         Macro
  688.         _PPCBrowser
  689.             move.w    #$0D00,d0
  690.             dc.w     $A82B
  691.         EndM
  692.     ELSE
  693.         IMPORT_CFM_FUNCTION    PPCBrowser
  694.     ENDIF
  695.  
  696.     IF OLDROUTINENAMES  THEN
  697. ;
  698. ;  The ParamBlock calls with the "Sync" or "Async" suffix are being phased out.
  699. ;
  700.     ENDIF
  701.     ENDIF ; __PPCTOOLBOX__
  702.